{# One form, two modes: live sites from their seeds, or a site from the Wayback Machine. Either starts a job; the address then holds it and the section follows it below the form while it runs. #} {% from "components/macros/layout.html" import card %} {% from "components/macros/form.html" import checkbox, date_input, field, number_input, primary_button, text_input, textarea %}
{% call card("Crawl", id="crawler-crawl") %}
{# Bound ``hidden``, not ``x-show``: x-show only sets ``display``, and the server's ``hidden`` (the right mode before Alpine loads) would stay. #} {{ checkbox("assets", False, "Fetch each page's images, stylesheets and downloads", "1") }}
{{ primary_button("Start", type="submit") }}
{% endcall %} {% if events %}
{% include "pages/overseer/crawler/_job.html" %}
{% endif %}